Skip to content

Comments

delayed probes#5

Merged
dzdidi merged 1 commit intomainfrom
feat/delayed-probes
Feb 23, 2026
Merged

delayed probes#5
dzdidi merged 1 commit intomainfrom
feat/delayed-probes

Conversation

@dzdidi
Copy link
Collaborator

@dzdidi dzdidi commented Feb 20, 2026

Pull request overview

This PR adds configurable pacing to the periodic probing routine by introducing delays between probes (per amount) and between peers, and wiring these new settings through config parsing and example configs.

Changes:

  • Add probe_delay_sec and peer_delay_sec to probing configuration (with defaults) and propagate into runtime probing loop.
  • Insert tokio::time::sleep delays after probe attempts and between peers during a probing cycle.
  • Update example configuration templates/help output to include the new delay fields.

Signed-off-by: dzdidi <dzdidi@protonmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds configurable pacing to the periodic probing routine by introducing delays between probes (per amount) and between peers, and wiring these new settings through config parsing and example configs.

Changes:

  • Add probe_delay_sec and peer_delay_sec to probing configuration (with defaults) and propagate into runtime probing loop.
  • Insert tokio::time::sleep delays after probe attempts and between peers during a probing cycle.
  • Update example configuration templates/help output to include the new delay fields.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/main.rs Applies new per-probe and per-peer delays during the probing loop and extends startup logging.
src/config.rs Extends deserialized probing config with new delay fields + defaults; updates config help text.
src/cli.rs Extends the in-memory probing config passed into runtime with delay fields.
prober_config.json.example Adds delay keys to the prober config example (but key naming may not match code).
config.example.json Adds delay fields to the primary config example.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dzdidi dzdidi requested a review from ovitrif February 20, 2026 08:20
@dzdidi dzdidi mentioned this pull request Feb 20, 2026
Copy link

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@dzdidi dzdidi merged commit 9f0d7ae into main Feb 23, 2026
4 checks passed
@dzdidi dzdidi deleted the feat/delayed-probes branch February 23, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants